package com.wcfsy.wechat.wx.entity;

import java.util.HashMap;
import java.util.Map;

public class WechatResp {
	public boolean success = true;
	public String msg;
	private Map<String, Object> data = new HashMap<String, Object>();

	public void putData(String key, Object val) {
		data.put(key, val);
	}

	public Object getObject(String key) {
		return data.get(key);
	}

	public String getString(String key) {
		Object obj = data.get(key);
		return obj == null ? null : obj.toString();
	}

	public boolean isSuccess() {
		return success;
	}

	public void setSuccess(boolean success) {
		this.success = success;
	}

	public String getMsg() {
		return msg;
	}

	public void setMsg(String msg) {
		this.msg = msg;
	}
}
